/**
 * 
 */
package org.cuatrovientos.SearchMap;

import java.util.Random;

/**
 * @author beatriz_sola
 *
 */
public class SearchMap {
public static void main(String[] args) {
		
		
		String [][] map= new String [10][10];
		Random random= new Random();
		int x=0;
		int y=0;
		
		for(int i=0;i<map.length;i++){
			for(int j=0;j<map[i].length;j++){
				map[i][j]=" ";
			}
		}
		
		//Get random cords
		x = random.nextInt(10);
		y = random.nextInt(10);
		//Put X there...
		map[x][y] = "X";
		System.out.print("  ");
		for (int i=0; i<10 ; i++){
			System.out.print(i+ "  ");
		}
		System.out.println();
		for(int i=0;i<map.length;i++){
			System.out.print(i);
			for(int j=0;j<map[i].length;j++){
				System.out.print("["+map[i][j]+"]");
			}
			System.out.println();
		}
	}

}

